@extends("admin.base")
  @section("content")
<!-- Content Header (Page header) -->
<section class="content-header">
  <h1>
    <i class="fa fa-calendar"></i>
商品管理模块
  </h1>
  <ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="#">商品管理</a></li>
    <li class="active">添加商品</li>
  </ol>
</section>

<!-- Main content -->
<section class="content">
  <div class="row">
    <!-- right column -->
    <div class="col-md-12">
      <!-- Horizontal Form -->
      <div class="box box-primary">
        <div class="box-header with-border">
          <h3 class="box-title"><i class="fa fa-plus"></i> 添加商品</h3>
        </div><!-- /.box-header -->
        <!-- form start -->
        <form action="{{url('admin/comtable')}}" method="post" class="form-horizontal" enctype="multipart/form-data">
          <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
          <div class="box-body">
            <div class="form-group">
              <label for="inputEmail3" class="col-sm-2 control-label">商品名称</label>
              <div class="col-sm-4">
                <input type="text" name="comname" value="" class="form-control" id="inputEmail3">
              </div>
            </div>
            <div class="form-group">
              <label for="inputPassword3" class="col-sm-2 control-label">商品价格</label>
              <div class="col-sm-4">
                <input type="text" name="comprice" value="" class="form-control" id="inputPassword3">
              </div>
            </div>
  	        <div class="form-group">
              <label for="inputPassword3" class="col-sm-2 control-label">商品配置</label>
              <div class="col-sm-4">
                <input type="text" name="comcofig" class="form-control" id="inputPassword3">
              </div>
            </div>
            <div class="form-group">
              <label for="inputPassword3" class="col-sm-2 control-label">商品颜色</label>
              <div class="col-sm-4">
                <input type="text" name="comcolor" class="form-control" id="inputPassword3">
              </div>
            </div>
            <div class="form-group">
              <label for="inputPassword3" class="col-sm-2 control-label">商品库存</label>
              <div class="col-sm-4">
                <input type="text" name="inventory" class="form-control" id="inputPassword3">
              </div>
            </div>
            <div class="form-group">
              <label for="inputPassword3" class="col-sm-2 control-label">商品类型 </label><span>&nbsp;&nbsp;&nbsp;</span>
              <div class="col-sm-4">
                <select name="name" style="width:150px" class="form-control">
                    <option value=""></option>
                    @foreach($list as $v)
                    <option value="{{$v->name}}">{{$v->name}}</option>
                    @endforeach
                </select>
              </div>
            </div>
            <div class="form-group">
              <label for="inputPassword3" class="col-sm-2 control-label">商品状态 </label><span>&nbsp;&nbsp;&nbsp;</span>
              <div class="col-sm-4">
                <select name="comstatus" style="width:150px" class="form-control">
                    <option value=""></option>
                    <option value="2">录入</option>
                    <option value="1">上架</option>
                    <option value="0">下架</option>
                </select>
              </div>
            </div>
            <div class="form-group">
              <label for="inputPassword3" class="col-sm-2 control-label">商品图片</label>
              <div class="col-sm-4">
                <div class="row">
    						  <div class="col-xs-6 col-md-3">
    						    <a href="#" class="thumbnail">
    						      <img src="">
    						    </a>
    						      <input type="file" name="fimg"/>
    						  </div>
    						</div>
              </div>
            </div>
          </div> 
	        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">规格参数</label>
            <div class="col-sm-10">
              <textarea id="editor1" name="content" rows="10" cols="80" required></textarea>
            </div>
          </div>
          <div class="box-footer">
				    <div class="col-sm-offset-2 col-sm-1">
					 	   <button type="submit" class="btn btn-primary">添加</button>
            </div>
  					<div class="col-sm-1">
  						  <button type="submit" class="btn btn-primary">重置</button>
  					</div>
          </div><!-- /.box-footer -->
        </form>
    <div class="row"><div class="col-sm-12">&nbsp;</div></div>
      </div><!-- /.box -->

    </div><!--/.col (right) -->
  </div>   <!-- /.row -->
</section><!-- /.content -->
  @endsection

 